  -- Teron Gorefiend --
function spell0_22871(pUnit, Event) --@Crushing Shadows,n/a--
pUnit:FullCastSpellOnTarget(40243,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22871', 15382, 1)
end
function spell1_22871(pUnit, Event) --@Destroy All Spirits,n/a--
pUnit:FullCastSpellOnTarget(44659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22871', 812, 1)
end
function spell2_22871(pUnit, Event) --@Destroy Spirit,n/a--
pUnit:FullCastSpellOnTarget(41626,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22871', 742, 1)
end
function spell3_22871(pUnit, Event) --@Incinerate,n/a--
pUnit:FullCastSpellOnTarget(40239,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22871', 3000, 1)
end
function spell4_22871(pUnit, Event) --@Shadow of Death,n/a--
pUnit:FullCastSpellOnTarget(40251,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22871', 56500, 1)
end
function Sorts_22871(pUnit, Event)
choix_sorts_22871 = math.random(0, 4)
if choix_sorts_22871 == 0 then
pUnit:RegisterEvent('spell0_22871', 1, 1)
end
if choix_sorts_22871 == 1 then
pUnit:RegisterEvent('spell1_22871', 1, 1)
end
if choix_sorts_22871 == 2 then
pUnit:RegisterEvent('spell2_22871', 1, 1)
end
if choix_sorts_22871 == 3 then
pUnit:RegisterEvent('spell3_22871', 1, 1)
end
if choix_sorts_22871 == 4 then
pUnit:RegisterEvent('spell4_22871', 1, 1)
end
end
function mob22871_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22871', math.random(1500, 3000), 1)
end
function mob22871_Leave(pUnit, Event)
end
function mob22871_Kill(pUnit, Event)
end
function mob22871_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(22871, 1, 'mob22871_Action')
RegisterUnitEvent(22871, 2, 'mob22871_Leave')
RegisterUnitEvent(22871, 3, 'mob22871_Kill')
RegisterUnitEvent(22871, 4, 'mob22871_Die')
